package com.wwwarehouse.carddesk.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * <pre>
 *     author : xiaofei.he
 *     time   : 2017/11/15
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class CardDeskGroupresponseBean implements Parcelable {

    /**
     * ArrayList : [{"faceUrl":"https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg","personId":10001831,"personName":"网仓","status":1}]
     * page : 1
     * size : 1
     * total : 1
     */

    private int page;
    private int size;
    private int total;
    private ArrayList<ArrayListBean> list;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public ArrayList<ArrayListBean> getList() {
        return list;
    }

    public void setList(ArrayList<ArrayListBean> list) {
        this.list = list;
    }

    public static class ArrayListBean implements Parcelable {
        /**
         * faceUrl : https://192.168.6.93/temp/1ae4ffff-76e8-4777-b30e-3caacab713c6.jpeg
         * personId : 10001831
         * personName : 网仓
         * status : 1
         */

        private String faceUrl;
        private String personId;
        private String personName;
        private int status; //status:1 正常，8被锁定

        public String getFaceUrl() {
            return faceUrl;
        }

        public void setFaceUrl(String faceUrl) {
            this.faceUrl = faceUrl;
        }

        public String getPersonId() {
            return personId;
        }

        public void setPersonId(String personId) {
            this.personId = personId;
        }

        public String getPersonName() {
            return personName;
        }

        public void setPersonName(String personName) {
            this.personName = personName;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.faceUrl);
            dest.writeString(this.personId);
            dest.writeString(this.personName);
            dest.writeInt(this.status);
        }

        public ArrayListBean() {
        }

        protected ArrayListBean(Parcel in) {
            this.faceUrl = in.readString();
            this.personId = in.readString();
            this.personName = in.readString();
            this.status = in.readInt();
        }

        public static final Creator<ArrayListBean> CREATOR = new Creator<ArrayListBean>() {
            @Override
            public ArrayListBean createFromParcel(Parcel source) {
                return new ArrayListBean(source);
            }

            @Override
            public ArrayListBean[] newArray(int size) {
                return new ArrayListBean[size];
            }
        };
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.page);
        dest.writeInt(this.size);
        dest.writeInt(this.total);
        dest.writeTypedList(this.list);
    }

    public CardDeskGroupresponseBean() {
    }

    protected CardDeskGroupresponseBean(Parcel in) {
        this.page = in.readInt();
        this.size = in.readInt();
        this.total = in.readInt();
        this.list = in.createTypedArrayList(ArrayListBean.CREATOR);
    }

    public static final Parcelable.Creator<CardDeskGroupresponseBean> CREATOR = new Parcelable.Creator<CardDeskGroupresponseBean>() {
        @Override
        public CardDeskGroupresponseBean createFromParcel(Parcel source) {
            return new CardDeskGroupresponseBean(source);
        }

        @Override
        public CardDeskGroupresponseBean[] newArray(int size) {
            return new CardDeskGroupresponseBean[size];
        }
    };
}
